<?php ob_start();?>
<?php
$root = $_SERVER['DOCUMENT_ROOT'];
include($root.'/standart/head.php');
include($root.'/standart/dateHeader.php');
include($root.'/standart/dbconnect.php');
$db = connect();
$stmt ="SELECT ID
		FROM ORDERS
		WHERE ISPRINT = 0";
	$res = $db->query($stmt) or die($stmt."<br/><br/>".mysql_error());
	$isFirst = true;
	echo "orders=";
	while($row = $res->fetch_assoc()){
		if(!$isFirst){
			echo '|';
		}
		echo $row['ID'];
		$isFirst = false;
	}
	$res->close();
	disconnect($db);
?>
<?php ob_end_flush(); ?>